import { defineComponent, getCurrentInstance, reactive, ref } from 'vue'
import Z from './子'
export default defineComponent({
  name: '父',
  setup(props, { emit }) {
    const dt = reactive({
      num: 666,
      modelValue: 111,
    })
    // const num = reactive(666)
    // const modelValue = ref(111)
    return () => (
      <div>
        父组件的值:{dt.num}
        父组件的modelValue:{dt.modelValue}
        <Z
          onUpdate:num={(params) => {
            dt.num = params
          }}
          v-model={dt.modelValue}
        />
      </div>
    )
  },
})
